package com.mycompany.xxy_dome.controller;

import com.mycompany.xxy_dome.modle.Imgurl;
import com.mycompany.xxy_dome.view.Main;

import java.awt.*;
import java.util.Random;

public class ImgController {

    public static void Controller(int uiWidth, int uiHeight) {
        Main main = new Main(uiWidth,uiHeight);
        main.setVisible(true);
        Imgurl imgurl = new Imgurl();
        Random random = new Random();
        int randomNumber = random.nextInt(10);


        main.scene(imgurl.geturl(randomNumber));// 更新场景
    }

}
